<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "{{%house_type_image}}".
 *
 * @property int    $id
 * @property string $img_path 图片
 * @property string $name     名称
 * @property string $area   面积
 * @property int    $house_type    户型
 * @property int    $price    总价(万)
 * @property int    $house_id 房源id
 */
class RentingTypeImageModel extends \yii\db\ActiveRecord
{

    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%renting_type_image}}';
    }

    
    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['house_id'], 'integer'],
            [['img_path'], 'string', 'max' => 100],
            [['name', 'area','price'], 'string', 'max' => 20],
            [['house_type'], 'string', 'max' => 40],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'img_path' => '图片',
            'name' => '户型标题',
            'area' => '面积（㎡）',
            'price' => '租金（元/月）',
            'house_type'=> '户型',
            'house_id'=> '房源id'
        ];
    }
}
